import { ref } from 'vue'
import { defineStore } from 'pinia'
import { getcategoryAPI } from '@/apis/layout'

export const useCounterStore = defineStore('category', () => {
  const cataforyList = ref([]) //导航数据

  const getcataGoryData = async () => {
    const { result } = await getcategoryAPI()

    cataforyList.value = result

    // console.log(cataforyList)
  }

  return {
    cataforyList,
    getcataGoryData
  }
})
